// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

// import java.util.ArrayList;
// import java.util.List;

#include "SQLAlterTableDisableLifecycle.h"
#include "../../visitor/SQLASTVisitor.h"
#include "SQLAssignItem.h"
#include "../../../utils/listTran.h"

SQLAlterTableDisableLifecycle::SQLAlterTableDisableLifecycle()
{
  partition = std::make_shared<std::list<SQLAssignItem_ptr>>();
}
SQLAssignItem_list_ptr SQLAlterTableDisableLifecycle::getPartition()
{
  return partition;
}

// @Override
void SQLAlterTableDisableLifecycle::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLAlterTableDisableLifecycle)))
  {
    SQLObject_list_ptr tmp1 = ListTran::tran_class<SQLAssignItem, SQLObject>(partition);
    acceptChild(visitor, tmp1);
  }
  visitor->endVisit(SharedObject(SQLAlterTableDisableLifecycle));
}
